package com.es.springbootdate_es.dao;

import com.es.springbootdate_es.pojo.Product;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zc
 * @version 1.0
 * @date 2021/9/16 11:38
 */
@Repository
public interface ProductDao extends ElasticsearchRepository<Product,Long> {
    /**
     * 根据价格区间查询
     * @param price1
     * @param price2
     * @return
     */
    List<Product>findByPriceBetween(double price1, double price2);
}
